﻿
Partial Class Master_MasterPage
    Inherits System.Web.UI.MasterPage

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If IsNothing(Session("section")) Then
            Session.Clear()
            Response.Redirect("../Login.aspx")
        End If
        checkMenu()
        showData()
    End Sub

    Sub checkMenu()
        If Session("section").ToString <> "MMC" Then
            tbEng.Visible = True
            tbMMC.Visible = False
        Else
       
            tbMMC.Visible = True
            tbEng.Visible = False

        End If
    End Sub

    Sub showData()
        lbluserDetail.Text = Session("fname") & " " & Session("lname")
    End Sub

    Protected Sub lbnSignOut_Click(sender As Object, e As EventArgs) Handles lbnSignOut.Click
        Session.Clear()
        Response.Redirect("../Login.aspx")
    End Sub
End Class

